from odoo import api, fields, models, _
import logging
from odoo.exceptions import UserError

logger = logging.getLogger(__name__)


class InfoMER_Chat(models.Model):
    _name = 'user.chat'
    _description = 'user_info'

    name = fields.Char(
        '患者约谈详情',
        default='患者约谈详情'
    )
    person_id = fields.Many2one(
        'user.special',
        string='约谈对象',
        required=True,
    )
    schedule_date = fields.Datetime('约定时间', required=True)
    duration = fields.Float('持续时间', default=1.5)
